package com.ktjy.service;

import com.ktjy.entity.StorageRecord;
import com.ktjy.mapper.StorageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service("storageService")
@Transactional
public class StorageServiceImpl implements StorageService {
    @Autowired
    private StorageMapper storageMapper;

    @Override
    public int insert(StorageRecord record) {
        return storageMapper.insert(record);
    }

    @Override
    public int delete(int id) {
        return storageMapper.delete(id);
    }

    @Override
    public int update(StorageRecord record) {
        return storageMapper.update(record);
    }
}
